package com.light.roller;

import org.anddev.andengine.engine.Engine;

import com.badlogic.gdx.math.Vector2;
import com.huw.debuger.FileIO;
import com.smile.menu.MenuButton;
import com.smile.menu.MenuForm;

public class BigMenuWorld2 extends BigMenu{
	
		public Engine initialize(Vector2 cameraCenter)
		{
			lowestStageNum = 11;
			heightestStageNum = 20;
			
			String openPicText = "world2OpenSpot";
			this.backGroundPicString = "BigMenuWorld2";
			
			Engine engine = super.initialize(cameraCenter);		
			
			stages = new Class<?>[]
                                 	{
             		Roller_S9.class,
             		Roller_S6.class,
             		Roller_S25.class,
             		Roller_S5.class,
             		Roller_S7.class,
             		Roller_S12.class,
             		Roller_S19.class,
             		Roller_S13.class,
             		Roller_S14.class,
             		Roller_S15.class,

                                 	};

				picText = new String[]
           	                   {
           						  "logo_S9",
           						  "logo_S6",
           						  "logo_S25",
           						  "logo_S5",
           						  "logo_S7",
           						  "logo_S12",
           						  "logo_S19",
           						  "logo_S13",
           						  "logo_S14",
           						  "logo_S15",
           	                   };
				
			stageString= getStageNameArray();

			
			spotPositionList = new Vector2[]{
					new Vector2(60,161),
					new Vector2(230,214),
					new Vector2(232,111),
					new Vector2(432,68),
					new Vector2(368,233),
					new Vector2(479,169),
					new Vector2(600,196),
					new Vector2(692,63),
					new Vector2(805,174),
					new Vector2(953,202)

			};	
			menuButtons = new MenuButton[]
			             		                    {
			             								new MenuButton(this, (int)spotPositionList[0].x,(int)spotPositionList[0].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[1].x,(int)spotPositionList[1].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[2].x,(int)spotPositionList[2].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[3].x,(int)spotPositionList[3].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[4].x,(int)spotPositionList[4].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[5].x,(int)spotPositionList[5].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[6].x,(int)spotPositionList[6].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[7].x,(int)spotPositionList[7].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[8].x,(int)spotPositionList[8].y,this.menuManager),
			             								new MenuButton(this, (int)spotPositionList[9].x,(int)spotPositionList[9].y,this.menuManager),
			             							};
			for(int i=0;i<this.menuButtons.length;i++)
			{
				menuButtons[i].setOpenPicText(openPicText);
				
			}

			
	        return engine;
		}
		
		static public String[] getStageNameArray()
		{
			return new String[]
        	       {
					  
					  "Scrap \n        Station",
					  "The \n      Elevator",
					  "Companion \n                   Box",
					  "The \n      Crusher",
					  "No Place \n         To Stand",
					  "Only One \n          Chance",
					  " Unstable",
					  "The \n      Ball",
					  " Despair",
					  " Inertia",
                  };
		}

}
